<nav class="main-nav" id="main-nav">
	<?php if(!empty($userProfile)) : ?>
	<div class="userPanel">
		<div class="medal">
			<img width="75" height="75" class="avatar" src="https://graph.facebook.com/<?php echo $userProfile->user_id; ?>/picture?width=75&height=75" alt="User Avatar">
			<div class="floatLeft userInfo">
				<h5><?php echo $userProfile->full_name; ?></h5>
				<p>
					<span><?php echo limitWord($userProfile->user_email,20); ?></span>
					<?php if(!empty($userProfile->location)) : ?>
						<span><?php echo $userProfile->location; ?></span>
					<?php endif; ?>
					<span><?php echo date('d/m/Y',strtotime($userProfile->date_register)); ?></span>
				</p>
			</div>
			<div class="clearfix"></div>
		</div>
		
		<ul>
			<li>Đang có: <?php echo $userProfile->accumulation_point; ?> điểm</li>
			<li>Đã làm: <?php echo $this->PracticeTestResultModel->countPracticeTestSuccess($userProfile->user_id); ?> bài trắc nghiệm</li>
		</ul>	
		<div class="userNav">
			<a href="javascript:void(0);">Top làm bài</a>
			<a href="javascript:void(0);" onClick="izwebz.core.facebook.logout();">Đăng xuất?</a>
		</div>
	</div>
	<?php endif; ?>
	<h1>Danh mục <a href="#" class="floatRight">Đóng</a></h1>
	<?php wp_nav_menu( array('menu' => 'cat-menu','container'=> 'ul','menu_id'=>'','menu_class'=>'' )); ?>
</nav>